package com.itheima.genericity;

import java.util.ArrayList;
import java.util.Arrays;

public class GenericityDemo02 {
    public static void main(String[] args) {
       ArrayList<String> arrayList = new ArrayList<>();
       addArrs(arrayList,"1","2","3");
    }

    public static <T> void addArrs(ArrayList<T> array,T t1,T t2,T t3){
        array.add(t1);
        array.add(t2);
        array.add(t3);
        System.out.println(array);
    }
}
